package com.example.pojo.entitly;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName drug
 */
public class Drug implements Serializable {
    /**
     * 
     */
    private Integer id;

    /**
     * 
     */
    private String drugNumber;

    /**
     * 
     */
    private String drugName;

    /**
     * 
     */
    private String drugModel;

    /**
     * 
     */
    private String dosage;

    /**
     * 
     */
    private String cSpecification;

    /**
     * 
     */
    private String pSpecification;

    /**
     * 
     */
    private Date dateOfManufacture;

    /**
     * 
     */
    private String periodOfValidity;

    /**
     * 
     */
    private Date dateDue;

    /**
     * 
     */
    private String remainingDays;

    /**
     * 
     */
    private Date warehouseTimes;

    /**
     * 
     */
    private Double univalence;

    /**
     * 
     */
    private String gross;

    /**
     * 
     */
    private String usageAmount;

    /**
     * 
     */
    private String inventory;

    /**
     * 
     */
    private String rummager;

    /**
     * 
     */
    private String supplier;

    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getDrugNumber() {
        return drugNumber;
    }

    /**
     * 
     */
    public void setDrugNumber(String drugNumber) {
        this.drugNumber = drugNumber;
    }

    /**
     * 
     */
    public String getDrugName() {
        return drugName;
    }

    /**
     * 
     */
    public void setDrugName(String drugName) {
        this.drugName = drugName;
    }

    /**
     * 
     */
    public String getDrugModel() {
        return drugModel;
    }

    /**
     * 
     */
    public void setDrugModel(String drugModel) {
        this.drugModel = drugModel;
    }

    /**
     * 
     */
    public String getDosage() {
        return dosage;
    }

    /**
     * 
     */
    public void setDosage(String dosage) {
        this.dosage = dosage;
    }

    /**
     * 
     */
    public String getcSpecification() {
        return cSpecification;
    }

    /**
     * 
     */
    public void setcSpecification(String cSpecification) {
        this.cSpecification = cSpecification;
    }

    /**
     * 
     */
    public String getpSpecification() {
        return pSpecification;
    }

    /**
     * 
     */
    public void setpSpecification(String pSpecification) {
        this.pSpecification = pSpecification;
    }

    /**
     * 
     */
    public Date getDateOfManufacture() {
        return dateOfManufacture;
    }

    /**
     * 
     */
    public void setDateOfManufacture(Date dateOfManufacture) {
        this.dateOfManufacture = dateOfManufacture;
    }

    /**
     * 
     */
    public String getPeriodOfValidity() {
        return periodOfValidity;
    }

    /**
     * 
     */
    public void setPeriodOfValidity(String periodOfValidity) {
        this.periodOfValidity = periodOfValidity;
    }

    /**
     * 
     */
    public Date getDateDue() {
        return dateDue;
    }

    /**
     * 
     */
    public void setDateDue(Date dateDue) {
        this.dateDue = dateDue;
    }

    /**
     * 
     */
    public String getRemainingDays() {
        return remainingDays;
    }

    /**
     * 
     */
    public void setRemainingDays(String remainingDays) {
        this.remainingDays = remainingDays;
    }

    /**
     * 
     */
    public Date getWarehouseTimes() {
        return warehouseTimes;
    }

    /**
     * 
     */
    public void setWarehouseTimes(Date warehouseTimes) {
        this.warehouseTimes = warehouseTimes;
    }

    /**
     * 
     */
    public Double getUnivalence() {
        return univalence;
    }

    /**
     * 
     */
    public void setUnivalence(Double univalence) {
        this.univalence = univalence;
    }

    /**
     * 
     */
    public String getGross() {
        return gross;
    }

    /**
     * 
     */
    public void setGross(String gross) {
        this.gross = gross;
    }

    /**
     * 
     */
    public String getUsageAmount() {
        return usageAmount;
    }

    /**
     * 
     */
    public void setUsageAmount(String usageAmount) {
        this.usageAmount = usageAmount;
    }

    /**
     * 
     */
    public String getInventory() {
        return inventory;
    }

    /**
     * 
     */
    public void setInventory(String inventory) {
        this.inventory = inventory;
    }

    /**
     * 
     */
    public String getRummager() {
        return rummager;
    }

    /**
     * 
     */
    public void setRummager(String rummager) {
        this.rummager = rummager;
    }

    /**
     * 
     */
    public String getSupplier() {
        return supplier;
    }

    /**
     * 
     */
    public void setSupplier(String supplier) {
        this.supplier = supplier;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Drug other = (Drug) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDrugNumber() == null ? other.getDrugNumber() == null : this.getDrugNumber().equals(other.getDrugNumber()))
            && (this.getDrugName() == null ? other.getDrugName() == null : this.getDrugName().equals(other.getDrugName()))
            && (this.getDrugModel() == null ? other.getDrugModel() == null : this.getDrugModel().equals(other.getDrugModel()))
            && (this.getDosage() == null ? other.getDosage() == null : this.getDosage().equals(other.getDosage()))
            && (this.getcSpecification() == null ? other.getcSpecification() == null : this.getcSpecification().equals(other.getcSpecification()))
            && (this.getpSpecification() == null ? other.getpSpecification() == null : this.getpSpecification().equals(other.getpSpecification()))
            && (this.getDateOfManufacture() == null ? other.getDateOfManufacture() == null : this.getDateOfManufacture().equals(other.getDateOfManufacture()))
            && (this.getPeriodOfValidity() == null ? other.getPeriodOfValidity() == null : this.getPeriodOfValidity().equals(other.getPeriodOfValidity()))
            && (this.getDateDue() == null ? other.getDateDue() == null : this.getDateDue().equals(other.getDateDue()))
            && (this.getRemainingDays() == null ? other.getRemainingDays() == null : this.getRemainingDays().equals(other.getRemainingDays()))
            && (this.getWarehouseTimes() == null ? other.getWarehouseTimes() == null : this.getWarehouseTimes().equals(other.getWarehouseTimes()))
            && (this.getUnivalence() == null ? other.getUnivalence() == null : this.getUnivalence().equals(other.getUnivalence()))
            && (this.getGross() == null ? other.getGross() == null : this.getGross().equals(other.getGross()))
            && (this.getUsageAmount() == null ? other.getUsageAmount() == null : this.getUsageAmount().equals(other.getUsageAmount()))
            && (this.getInventory() == null ? other.getInventory() == null : this.getInventory().equals(other.getInventory()))
            && (this.getRummager() == null ? other.getRummager() == null : this.getRummager().equals(other.getRummager()))
            && (this.getSupplier() == null ? other.getSupplier() == null : this.getSupplier().equals(other.getSupplier()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDrugNumber() == null) ? 0 : getDrugNumber().hashCode());
        result = prime * result + ((getDrugName() == null) ? 0 : getDrugName().hashCode());
        result = prime * result + ((getDrugModel() == null) ? 0 : getDrugModel().hashCode());
        result = prime * result + ((getDosage() == null) ? 0 : getDosage().hashCode());
        result = prime * result + ((getcSpecification() == null) ? 0 : getcSpecification().hashCode());
        result = prime * result + ((getpSpecification() == null) ? 0 : getpSpecification().hashCode());
        result = prime * result + ((getDateOfManufacture() == null) ? 0 : getDateOfManufacture().hashCode());
        result = prime * result + ((getPeriodOfValidity() == null) ? 0 : getPeriodOfValidity().hashCode());
        result = prime * result + ((getDateDue() == null) ? 0 : getDateDue().hashCode());
        result = prime * result + ((getRemainingDays() == null) ? 0 : getRemainingDays().hashCode());
        result = prime * result + ((getWarehouseTimes() == null) ? 0 : getWarehouseTimes().hashCode());
        result = prime * result + ((getUnivalence() == null) ? 0 : getUnivalence().hashCode());
        result = prime * result + ((getGross() == null) ? 0 : getGross().hashCode());
        result = prime * result + ((getUsageAmount() == null) ? 0 : getUsageAmount().hashCode());
        result = prime * result + ((getInventory() == null) ? 0 : getInventory().hashCode());
        result = prime * result + ((getRummager() == null) ? 0 : getRummager().hashCode());
        result = prime * result + ((getSupplier() == null) ? 0 : getSupplier().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", drugNumber=").append(drugNumber);
        sb.append(", drugName=").append(drugName);
        sb.append(", drugModel=").append(drugModel);
        sb.append(", dosage=").append(dosage);
        sb.append(", cSpecification=").append(cSpecification);
        sb.append(", pSpecification=").append(pSpecification);
        sb.append(", dateOfManufacture=").append(dateOfManufacture);
        sb.append(", periodOfValidity=").append(periodOfValidity);
        sb.append(", dateDue=").append(dateDue);
        sb.append(", remainingDays=").append(remainingDays);
        sb.append(", warehouseTimes=").append(warehouseTimes);
        sb.append(", univalence=").append(univalence);
        sb.append(", gross=").append(gross);
        sb.append(", usageAmount=").append(usageAmount);
        sb.append(", inventory=").append(inventory);
        sb.append(", rummager=").append(rummager);
        sb.append(", supplier=").append(supplier);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}